package cn.getech.data.development.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 告警通知接收人
 */
@Data
@ApiModel
@TableName("bdp_alarm_object")
public class AlarmObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 告警记录id
     */
    @TableField("alarm_id")
    private Integer alarmId;

    /**
     * 告警对象类型
     */
    @TableField("object_type")
    private Integer objectType;

    @ApiModelProperty("告警对象id")
    @TableField("object_id")
    private Integer objectId;

    @ApiModelProperty("告警对象名称")
    @TableField("object_name")
    private String objectName;

}
